package com.hudongwx.shansun.utlis;

import org.json.JSONObject;
import org.xutils.http.app.ResponseParser;
import org.xutils.http.request.UriRequest;

import java.lang.reflect.Type;

/**
 * Created by hudongwx on 16-10-26.
 */
public class JSONparse implements ResponseParser {
    @Override
    public void checkResponse(UriRequest request) throws Throwable {

    }

    @Override
    public Object parse(Type resultType, Class<?> resultClass, String result) throws Throwable {
        JSONObject myJSONobject = new MyJSONobject(result);
        return myJSONobject;
    }
}
